#ifndef _Dialog_H_
#define _Dialog_H_

#include "cocos2d.h"

using namespace cocos2d;

typedef enum tagDialogState 
{
	kDialogStateGrabbed,
	kDialogStateUngrabbed
} DialogState; 

class Dialog : public CCNode, public CCTargetedTouchDelegate
{
	DialogState		m_state;

public:
    bool cantouch;
	Dialog(void);
	virtual ~Dialog(void);
	virtual void onEnter();
	virtual void onExit();
	//bool containsTouchLocation(CCTouch* touch);
	virtual bool ccTouchBegan(CCTouch* touch, CCEvent* event);
	virtual void ccTouchMoved(CCTouch* touch, CCEvent* event);
	virtual void ccTouchEnded(CCTouch* touch, CCEvent* event);

	virtual void touchDelegateRetain();
	virtual void touchDelegateRelease();

	void enableTouch(CCObject* pSender);
};

#endif
